﻿namespace Dcms.BLL
{
    using Dcms.IDAL;
    using Dcms.Model;
    using System;
    using System.Collections.Generic;

    public class Dcms_DownBLL
    {
        private IDcms_DownDAL dOp = Dcms.DALFactory.DALFactory.CreateDcms_Down();

        public Dcms_DownModel AddModel(Dcms_DownModel model)
        {
            return this.dOp.AddModel(model);
        }

        public bool CopyDown(int SourceCateID, int DestCateID)
        {
            return this.dOp.CopyDown(SourceCateID, DestCateID);
        }

        public bool DeleteAllCheck(string AllID)
        {
            return this.dOp.DeleteAllCheck(AllID);
        }

        public void DeleteModelByID(int ID)
        {
            this.dOp.DeleteModelByID(ID);
        }

        public string GetDataCount(string SqlStr)
        {
            return this.dOp.GetDataCount(SqlStr);
        }

        public IList<Dcms_DownModel> GetDataListByPage(string SqlStr, int CurPage, int PageSize)
        {
            return this.dOp.GetDataListByPage(SqlStr, CurPage, PageSize);
        }

        public Dcms_DownModel GetModelByID(int ID)
        {
            return this.dOp.GetModelByID(ID);
        }

        public Dcms_DownModel GetNewModelByCatID(int CatID)
        {
            return this.dOp.GetNewModelByCatID(CatID);
        }

        public bool MoveDown(int SourceCateID, int DestCateID)
        {
            return this.dOp.MoveDown(SourceCateID, DestCateID);
        }

        public Dcms_DownModel Update(Dcms_DownModel model)
        {
            return this.dOp.Update(model);
        }

        public bool UpdateState(string AllID, int StateValue)
        {
            return this.dOp.UpdateState(AllID, StateValue);
        }
    }
}

